package com.ys.entity.finance;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_WanliPrepaymentRecorded", catalog="Id")
public class TcwWanliPrepaymentRecorded extends BaseEntity<TcwWanliPrepaymentRecorded> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Bid", nameJava="bid", typeDataBase="varchar")
	private String bid;
	@YsField(nameDataBase="EffectStock", nameJava="effectStock", typeDataBase="tinyint")
	private Integer effectStock;
	@YsField(nameDataBase="CreateChangeId", nameJava="createChangeId", typeDataBase="bigint")
	private Long createChangeId;
	@YsField(nameDataBase="DepositPlatformCode", nameJava="depositPlatformCode", typeDataBase="varchar")
	private String depositPlatformCode;
	@YsField(nameDataBase="ReconciliationBid", nameJava="reconciliationBid", typeDataBase="varchar")
	private String reconciliationBid;
	@YsField(nameDataBase="ExchangeRateDay", nameJava="exchangeRateDay", typeDataBase="varchar")
	private String exchangeRateDay;
	@YsField(nameDataBase="ExchangeRateByGbp", nameJava="exchangeRateByGbp", typeDataBase="decimal")
	private BigDecimal exchangeRateByGbp;
	@YsField(nameDataBase="ExchangeRateByUsd", nameJava="exchangeRateByUsd", typeDataBase="decimal")
	private BigDecimal exchangeRateByUsd;
	@YsField(nameDataBase="ExchangeRateByEur", nameJava="exchangeRateByEur", typeDataBase="decimal")
	private BigDecimal exchangeRateByEur;
	@YsField(nameDataBase="PoolingTotal", nameJava="poolingTotal", typeDataBase="decimal")
	private BigDecimal poolingTotal;
	@YsField(nameDataBase="ReconciliationFeeTotal", nameJava="reconciliationFeeTotal", typeDataBase="decimal")
	private BigDecimal reconciliationFeeTotal;
	@YsField(nameDataBase="CountFeeTotal", nameJava="countFeeTotal", typeDataBase="decimal")
	private BigDecimal countFeeTotal;
	@YsField(nameDataBase="RecordedTotal", nameJava="recordedTotal", typeDataBase="decimal")
	private BigDecimal recordedTotal;
	@YsField(nameDataBase="RecordedOperations", nameJava="recordedOperations", typeDataBase="decimal")
	private BigDecimal recordedOperations;
	@YsField(nameDataBase="RecordedFinance", nameJava="recordedFinance", typeDataBase="decimal")
	private BigDecimal recordedFinance;
	@YsField(nameDataBase="AmountCny", nameJava="amountCny", typeDataBase="decimal")
	private BigDecimal amountCny;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwWanliPrepaymentRecorded setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBid() {
		return bid;
	}
	public TcwWanliPrepaymentRecorded setBid(String bid) {
		this.bid = bid;
		return this;
	}
	public Integer getEffectStock() {
		return effectStock;
	}
	public TcwWanliPrepaymentRecorded setEffectStock(Integer effectStock) {
		this.effectStock = effectStock;
		return this;
	}
	public Long getCreateChangeId() {
		return createChangeId;
	}
	public TcwWanliPrepaymentRecorded setCreateChangeId(Long createChangeId) {
		this.createChangeId = createChangeId;
		return this;
	}
	public String getDepositPlatformCode() {
		return depositPlatformCode;
	}
	public TcwWanliPrepaymentRecorded setDepositPlatformCode(String depositPlatformCode) {
		this.depositPlatformCode = depositPlatformCode;
		return this;
	}
	public String getReconciliationBid() {
		return reconciliationBid;
	}
	public TcwWanliPrepaymentRecorded setReconciliationBid(String reconciliationBid) {
		this.reconciliationBid = reconciliationBid;
		return this;
	}
	public String getExchangeRateDay() {
		return exchangeRateDay;
	}
	public TcwWanliPrepaymentRecorded setExchangeRateDay(String exchangeRateDay) {
		this.exchangeRateDay = exchangeRateDay;
		return this;
	}
	public BigDecimal getExchangeRateByGbp() {
		return exchangeRateByGbp;
	}
	public TcwWanliPrepaymentRecorded setExchangeRateByGbp(BigDecimal exchangeRateByGbp) {
		this.exchangeRateByGbp = exchangeRateByGbp;
		return this;
	}
	public BigDecimal getExchangeRateByUsd() {
		return exchangeRateByUsd;
	}
	public TcwWanliPrepaymentRecorded setExchangeRateByUsd(BigDecimal exchangeRateByUsd) {
		this.exchangeRateByUsd = exchangeRateByUsd;
		return this;
	}
	public BigDecimal getExchangeRateByEur() {
		return exchangeRateByEur;
	}
	public TcwWanliPrepaymentRecorded setExchangeRateByEur(BigDecimal exchangeRateByEur) {
		this.exchangeRateByEur = exchangeRateByEur;
		return this;
	}
	public BigDecimal getPoolingTotal() {
		return poolingTotal;
	}
	public TcwWanliPrepaymentRecorded setPoolingTotal(BigDecimal poolingTotal) {
		this.poolingTotal = poolingTotal;
		return this;
	}
	public BigDecimal getReconciliationFeeTotal() {
		return reconciliationFeeTotal;
	}
	public TcwWanliPrepaymentRecorded setReconciliationFeeTotal(BigDecimal reconciliationFeeTotal) {
		this.reconciliationFeeTotal = reconciliationFeeTotal;
		return this;
	}
	public BigDecimal getCountFeeTotal() {
		return countFeeTotal;
	}
	public TcwWanliPrepaymentRecorded setCountFeeTotal(BigDecimal countFeeTotal) {
		this.countFeeTotal = countFeeTotal;
		return this;
	}
	public BigDecimal getRecordedTotal() {
		return recordedTotal;
	}
	public TcwWanliPrepaymentRecorded setRecordedTotal(BigDecimal recordedTotal) {
		this.recordedTotal = recordedTotal;
		return this;
	}
	public BigDecimal getRecordedOperations() {
		return recordedOperations;
	}
	public TcwWanliPrepaymentRecorded setRecordedOperations(BigDecimal recordedOperations) {
		this.recordedOperations = recordedOperations;
		return this;
	}
	public BigDecimal getRecordedFinance() {
		return recordedFinance;
	}
	public TcwWanliPrepaymentRecorded setRecordedFinance(BigDecimal recordedFinance) {
		this.recordedFinance = recordedFinance;
		return this;
	}
	public BigDecimal getAmountCny() {
		return amountCny;
	}
	public TcwWanliPrepaymentRecorded setAmountCny(BigDecimal amountCny) {
		this.amountCny = amountCny;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwWanliPrepaymentRecorded setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwWanliPrepaymentRecorded setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwWanliPrepaymentRecorded setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwWanliPrepaymentRecorded tcwWanliPrepaymentRecorded(
		String bid,
		Integer effectStock,
		Long createChangeId,
		String depositPlatformCode,
		String reconciliationBid,
		String exchangeRateDay,
		BigDecimal exchangeRateByGbp,
		BigDecimal exchangeRateByUsd,
		BigDecimal exchangeRateByEur,
		BigDecimal poolingTotal,
		BigDecimal reconciliationFeeTotal,
		BigDecimal countFeeTotal,
		BigDecimal recordedTotal,
		BigDecimal recordedOperations,
		BigDecimal recordedFinance,
		BigDecimal amountCny,
		Integer status
			) {
		TcwWanliPrepaymentRecorded entity = new TcwWanliPrepaymentRecorded();
		entity.setBid(bid);
		entity.setEffectStock(effectStock);
		entity.setCreateChangeId(createChangeId);
		entity.setDepositPlatformCode(depositPlatformCode);
		entity.setReconciliationBid(reconciliationBid);
		entity.setExchangeRateDay(exchangeRateDay);
		entity.setExchangeRateByGbp(exchangeRateByGbp);
		entity.setExchangeRateByUsd(exchangeRateByUsd);
		entity.setExchangeRateByEur(exchangeRateByEur);
		entity.setPoolingTotal(poolingTotal);
		entity.setReconciliationFeeTotal(reconciliationFeeTotal);
		entity.setCountFeeTotal(countFeeTotal);
		entity.setRecordedTotal(recordedTotal);
		entity.setRecordedOperations(recordedOperations);
		entity.setRecordedFinance(recordedFinance);
		entity.setAmountCny(amountCny);
		entity.setStatus(status);
		return entity;
	}
}